package com.md.lession7;

public class Demo3 {
	public static void main(String[] args) {
		for (int i = 0, k=1;k<11;i=k++<=5?++i:--i) {
			for (int j = 0; j<5-i; j++) {
			System.out.print(" ");	
			}
			for (int j= 0; j <=2*i-2 ; j++) {
				System.out.print("*");
			}
			System.out.println();
		}
	}
}
